package com.tencreat.domain.account;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import com.tencreat.common.enums.UserType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * 提现设置对象 common_withdraw_config
 *
 * @author tencreat
 * @date 2021-09-11
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("common_withdraw_config")
public class CommonWithdrawConfig extends BaseEntity<CommonWithdrawConfig> {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /**
     * 用户类型 关联 usertype枚举
     */
    @Excel(name = "用户类型 关联 usertype枚举")
    @ApiModelProperty(value = "用户类型 关联 usertype枚举")
    @TableField("`user_type`")
    private UserType userType;


    /**
     * 最低提现金额
     */
    @Excel(name = "最低提现金额")
    @ApiModelProperty(value = "最低提现金额")
    @TableField("`min_withdraw`")
    private BigDecimal minWithdraw;


    /**
     * 最低保留金额
     */
    @Excel(name = "最低保留金额")
    @ApiModelProperty(value = "最低保留金额")
    @TableField("`min_keep`")
    private BigDecimal minKeep;


    /**
     * 手续费
     */
    @TableField("`handling_fee`")
    private BigDecimal handlingFee;

    /**
     * 提现类型 1 余额 2 货款
     */
    @ApiModelProperty(value = "提现类型")
    @TableField("`type`")
    private Integer type;

    /**
     * 是否整百提现
     */
    @Excel(name = "是否整百提现")
    @ApiModelProperty(value = "是否整百提现")
    @TableField("`is_hundred_withdraw`")
    private Integer isHundredWithdraw;


    /* 租户ID*/

    @Excel(name = "租户ID")
    @ApiModelProperty(value = "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
